<%@ page import="sy.pageModel.BaseEntity" %>
<%@ page import="sy.pageModel.Member" %>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<script type="text/javascript">
    var editor = new baidu.editor.ui.Editor();
    $(function() {
//        显示查询信息（含分页、排序、筛选等功能）
        $('#admin_record_datagrid').datagrid({
            url : '${pageContext.request.contextPath}/recordController/datagrid.action',
            fit : true, fitColumns : true, border : false, pagination : true,
            idField : 'id', pageSize : 10,
            pageList : [ 10, 20, 30, 40, 50 ], sortName : 'createTimeStart', sortOrder : 'desc',
            checkOnSelect : false, selectOnCheck : false, nowrap : false,
            frozenColumns : [ [ {  field : 'id',title : '编号',checkbox : true}]],
            columns:[[{
                field : 'typeName',title : '类型',sortable : true},{
                field : 'createTimeStart',title : '创建时间',sortable : true},{
                field : 'userId',title : '操作者',sortable : true },{
                field : 'tnumber',title : '交易号（支付宝）',},{
                field : 'orderNumber',title : '预约单号',},{
                field : 'money',title : '交易金额',},{
                field : 'balance',title : '交易后余额', }
                <%--field : 'action1',title : '查看详情/修改',align : 'center',--%>
                <%--formatter : function(value, row, index) {--%>
                    <%--return formatString('<img onclick="admin_record_editFun(\'{0}\');" src="{1}"/>&nbsp;<img onclick="admin_record_removeFun(\'{2}\');" src="{3}"/>', row.id, '${pageContext.request.contextPath}/style/images/extjs_icons/pencil.png', row.id, '${pageContext.request.contextPath}/style/images/extjs_icons/cancel.png');--%>
                <%--}--%>
            ]]
//            toolbar : [ {
////                text : '添加内容',iconCls : 'icon-add',handler : function() {
////                    admin_record_appendFun();
////                }
//            }]
        });
    });

    function admin_record_searchFun() {
        $('#admin_record_datagrid').datagrid('load', serializeObject($('#admin_record_searchForm')));
    }

    function admin_record_cleanFun() {
        $('#admin_record_searchForm input').val('');
        $('#admin_record_datagrid').datagrid('load', {});
    }
</script>
<div class="easyui-layout" data-options="fit : true,border : false">
    <div data-options="region:'north',title:'查询条件',border:false" style="height:200px" align="center">
        <form id="admin_record_searchForm">
            <table class="tableForm">
                <tr>
                    <th style="width: 170px;">操作者名称</th>
                    <td>
                        <input type="text" class="easyui-combotree" name="userId" data-options="url:'${pageContext.request.contextPath}/recordController/find_name.action'" id="dept_type_1" style="width: 150px;">
                        <img src="${pageContext.request.contextPath}/style/images/extjs_icons/cut_red.png" onclick="$('#dept_type_1').combotree('clear');" />
                    </td>
                </tr>
                <tr>
                    <th>操作类型</th>
                    <td>
                        <select name="typeId" class="easyui-validatebox">
                            <option value=""></option>
                            <%for(String key : Member.MEMBER_PAY_STATUS.keySet()) {%>
                            <option value="<%=key%>"><%=Member.MEMBER_PAY_STATUS.get(key)%></option>
                            <%}%>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th style="width: 170px;">操作时间</th>
                    <td><input name="createTimeStart" onFocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})" />至<input name="createTimeEnd" onFocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})" /></td>
                </tr>
            </table>
            <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" onclick="admin_record_searchFun();">过滤</a> <a href="javascript:void(0);" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" onclick="admin_record_cleanFun();">取消过滤</a>
        </form>
    </div>
    <div data-options="region:'center',border:false">
        <table id="admin_record_datagrid"></table>
    </div>
</div>
